<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="stylesheet" type="text/css" href="{{ URL::asset('newstyle/css/drink.css?v=1') }}" />
    <link rel="icon" href="img/favicon.ico">
    <title>提交积分订单</title>
  </head>

<body class="white">
<header id="header">
  <a href="{{ route('customers.index') }}">
    <img src="{{ URL::asset('newstyle/images/arrow_left.png') }}" alt="" width="8" class="arrow_left">
  </a>
  <h3>提交积分订单</h3>
</header>
<form action="" method="post" class="sub">
  <div class="info">
    <h4>全部送货上门服务，仅为开通城市服务</h4>
    <p>
      <label for="">填写配送地址</label>
      <input type="text" name="address">
    </p>
    <p>
      <label for="">
        联系人信息
      </label>
      <input type="text"  name="name" value="{{ $customer->name }}">
    </p>
    <p>
      <input type="tel" name="mobile" value="{{ $customer->mobile }}">
    </p>
  </div>
  <div class="time">
    <ul>
      <li>
          期望上门时间
          <select name="select" id="select">
            <option>不限</option>
            <option>三天内</option>
            <option>一周内</option>
            <option>二周内</option>
          </select>       
      </li>
      <li>
        <input type="radio" name="datetime" id="inlineRadio5">下班后
        <input type="radio" name="datetime" id="inlineRadio7">周末
        <input type="radio" name="datetime" checked id="inlineRadio8">不限
      </li>
    </ul>
  </div>
  <div class="payment">
    <ul>
      <li>实付：<span>{{ $commodity->member_points }}</span></li>
      <li>现有：<span>{{ $customer->all_points-$customer->use_points }}</span></li>
      @if($enable == 0)
      <li>积分不足，无法完成购买</li>
      @endif
    </ul>
  </div>
  <div class="tips cl">
    <ul>
      <li>
         @if($commodity->type != 4)
        <input type="submit" name="type" value="微 信 支 付"/>
        @endif
      </li>
      <li>
        <input type="submit" name="type" @if($enable == 0) disabled @endif value="积 分 兑 换"/>
      </li>
    </ul>
  </div>
</form>

</body>
</html>
